﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ModelLayer.Patients
{
    public class TempPatient
    {
        private string idDocument;
        public string IdDocument
        {
            get { return idDocument; }
            set { idDocument = value; }
        }

        private string pid;
        public string Pid
        {
            get { return pid; }
            set { pid = value; }
        }

        private string familyName;
        public string FamilyName
        {
            get { return familyName; }
            set { familyName = value; }
        }

        private string givenName;
        public string GivenName
        {
            get { return givenName; }
            set { givenName = value; }
        }

        private string middleName;
        public string MiddleName
        {
            get { return middleName; }
            set { middleName = value; }
        }

        private string birthDate;
        public string BirthDate
        {
            get { return birthDate; }
            set { birthDate = value; }
        }

        private string sex;
        public string Sex
        {
            get { return sex; }
            set { sex = value; }
        }

        private string telephoneNumber;
        public string TelephoneNumber
        {
            get { return telephoneNumber; }
            set { telephoneNumber = value; }
        }

        private string mobileNumber;
        public string MobileNumber
        {
            get { return mobileNumber; }
            set { mobileNumber = value; }
        }

        private string email;
        public string Email
        {
            get { return email; }
            set { email = value; }
        }

        private string patientType;
        public string PatientType
        {
            get { return patientType; }
            set { patientType = value; }
        }

        private bool vipPatient;
        public bool VipPatient
        {
            get { return vipPatient; }
            set { vipPatient = value; }
        }

        public static TempPatient NewTempPatient(bool vipPatient, string idDocument, string familyName, string givenName, string middleName, string mobileNumber, string phoneNumber, string sex, string birthDate, string email, string patientType, string pid)
        {
            TempPatient patient = new TempPatient();
            patient.IdDocument = idDocument;
            patient.FamilyName = familyName;
            patient.GivenName = givenName;
            patient.MiddleName = middleName;
            patient.BirthDate = birthDate;
            patient.Sex = sex;
            patient.TelephoneNumber = phoneNumber;
            patient.Pid = pid;

            patient.mobileNumber = mobileNumber;
            patient.vipPatient = vipPatient;
            patient.patientType = patientType;
            patient.email = email;
            return patient;
        }
    }
}
